<?php require_once('Connections/elevate954.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

$colname_MEMBERSHIP_PACKAGES = "-1";
if (isset($_GET['package_id'])) {
  $colname_MEMBERSHIP_PACKAGES = $_GET['package_id'];
}
mysql_select_db($database_elevate954, $elevate954);
$query_MEMBERSHIP_PACKAGES = sprintf("SELECT * FROM membership_package WHERE package_id = %s ORDER BY sort_order ASC", GetSQLValueString($colname_MEMBERSHIP_PACKAGES, "int"));
$MEMBERSHIP_PACKAGES = mysql_query($query_MEMBERSHIP_PACKAGES, $elevate954) or die(mysql_error());
$row_MEMBERSHIP_PACKAGES = mysql_fetch_assoc($MEMBERSHIP_PACKAGES);
$totalRows_MEMBERSHIP_PACKAGES = mysql_num_rows($MEMBERSHIP_PACKAGES);

$colname_PAGES = "-1";
if (isset($_GET['pages_id'])) {
  $colname_PAGES = $_GET['pages_id'];
}
mysql_select_db($database_elevate954, $elevate954);
$query_PAGES = sprintf("SELECT * FROM pages WHERE pages_id = %s", GetSQLValueString($colname_PAGES, "int"));
$PAGES = mysql_query($query_PAGES, $elevate954) or die(mysql_error());
$row_PAGES = mysql_fetch_assoc($PAGES);
$totalRows_PAGES = mysql_num_rows($PAGES);

mysql_select_db($database_elevate954, $elevate954);
$query_featured_pages = "SELECT * FROM featured_programs";
$featured_pages = mysql_query($query_featured_pages, $elevate954) or die(mysql_error());
$row_featured_pages = mysql_fetch_assoc($featured_pages);
$totalRows_featured_pages = mysql_num_rows($featured_pages);

mysql_select_db($database_elevate954, $elevate954);
$query_NEWS = "SELECT * FROM MEMBERS_NEWS_AREA";
$NEWS = mysql_query($query_NEWS, $elevate954) or die(mysql_error());
$row_NEWS = mysql_fetch_assoc($NEWS);
$totalRows_NEWS = mysql_num_rows($NEWS);

require_once 'social-buffs/functions.php';
?>
<?php
 include("Connections/elevate954.php");
 include("functions.php");
 ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>ELEVATE954 | Health &amp; Fitness</title>
<style type="text/css">@import url("http://fonts.googleapis.com/css?family=PT+Sans");</style>
<style type="text/css">@import url("http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz");</style>
<style type="text/css">@import url("http://fonts.googleapis.com/css?family=Vollkorn");</style>
<style type="text/css">@import url("css/reset.css");</style>
<style type="text/css">@import url("css/grid.css");</style>
<style type="text/css">@import url("css/styles.css");</style>
<style type="text/css">@import url("css/tabs.css");</style>
<style>
.social-buffs .sb-icon { opacity:0.5; }
.social-buffs .sb-icon:hover { opacity:1; }
</style>
<link href="assets/buttons/social-buttons.css" type="text/css" rel="stylesheet">
<!--Common jQuery-->
<script src="js/jquery-1.6.2.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
<!--Coda Slider-->
<style type="text/css">@import url("css/coda-slider-2.0.css");</style>
<!--CSS Switcher-->
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<!--Flickr Feed-->
<script type="text/javascript" src="js/jflickrfeed.min.js"></script>
<script type="text/javascript" src="js/setup.js"></script>
<!--Parallax-->
<style type="text/css">@import url("layerslider/css/layerslider.css");</style>
<style type="text/css">@import url("css/parallax.css");</style>
<script src="layerslider/js/layerslider.kreaturamedia.jquery.js" type="text/javascript"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$('#layerslider').layerSlider({
		    navPrevNext : true,
			navButtons : false,
    		navStartStop : false,
			animateFirstLayer : true,
			skinsPath : 'layerslider/skins/'
		});
	});		
</script>
<!--Toggle-->
<style type="text/css">@import url("css/toggle.css");</style>
<script type="text/javascript" src="js/expand.js"></script>
<!--Scroll Top-->
<script type="text/javascript" src="js/scroll.js"></script>
<!--Pretty Photo-->
<style type="text/css">@import url("css/prettyPhoto.css");</style>
<script src="js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
<!--Quicksand-->
<script type='text/javascript' language='Javascript' src='js/jquery.quicksand.js'></script>
<!--Nivo-->
<style type="text/css">@import url("css/nivo-slider.css");</style>
<script type='text/javascript' src='js/jquery.nivo.slider.js'></script>
<script type='text/javascript'>
$(window).load(function() {
    $('#slider').nivoSlider();
    });
</script>
<!--Background-->
<script type="text/javascript" src="js/jquery.fullbg.min.js"></script>
<!--New Menu-->
<style type="text/css">@import url("css/menu.css");</style>
<link href="memberships.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/easing.js"></script>
<script type="text/javascript" src="js/menu.js"></script>
</head>

<body>
<!--<img src="images/backgrounds/image1.jpg" alt="" id="background" />-->
<div id="maincontent">

<!--Top Nav-->
<div class="bar">
	<div class="container_12">

		<div class="grid_6">
			<div class="mininav">
            	<ul>
            		<li><a href="index.php" class="fade">Home</a></li>            	
                	<li><a href="directions.php" class="fade">Direction</a></li>
                    <li><a href="contact.php" class="fade">Contact Us</a></li>
                    <li><a href="members/login.php" class="button dark small">Members Login</a></li>
            	</ul>
			</div>
		</div>
        
        <div class="grid_6 alignrightnopad">
        <!--Social Networks-->
        <div class="socialbar">
		<?php
$url = $_SERVER["SERVER_NAME"]. $_SERVER['REQUEST_URI'];
echo social_icons($url);
?>                          
        </div>
        <!--End Social Networks-->        
        </div>          
        
	</div>
</div>
<!--End Top Nav-->

<!--Start Box-->
<div class="box">
<a name="top" id="top"></a>

<!--Main Bar-->
<div class="container_12 navbar">
	<!--Logo-->
	<div class="grid_3_no_margin"><a href="index_home.html"><img src="White_Transparent.png" alt="" width="200" class="logo"/></a></div>
	<!--End Logo-->
	<!--Main Nav--> 
	<div class="grid_9_no_margin">

			<div id="menu">
				<ul>
                <li class="icon_drop"><a href="/">HOME</a></li>
               
                <?php
				$get_menu = "select * from menu_cat order by SORT_ORDER";
				$res_menu = mysql_query($get_menu) or die(mysql_error());
				while($row_menu = mysql_fetch_array($res_menu))
				{
					 $check_sub = "select * from submenu_cat where menu_id = ".$row_menu['menu_id']." order by SORT_ORDER";
					 $res_sub = mysql_query($check_sub);
					 $sub = mysql_num_rows($res_sub);
						if($sub > 0)
						{
							$class = "icon_drop";	
						}
						else
						{
							$class = "";	
						}
					
					// code for checking the redirection yes or no on main menu
					if($row_menu['REDIRECT_STATUS'] == "YES")
					{
					$href= $row_menu['REDIRECT_ADDRESS'];	
					}
					else
					{
					$href="pages.php?pages_id=".$row_menu['pages_id']."";	
					}
				 
				?>
                
					<li class="<?php echo $class;?>">
                    		<a href="<?php echo $href;?>"><?php echo ucwords($row_menu['NAME']);?></a>
                        
                      <?php
					  if($sub > 0)
						{
										
					  ?> 
                            
                    	 <ul>
                         <?php 
						 while($row_submenu = mysql_fetch_array($res_sub))
						 {
							// code for checking the redirection yes or no on sub menu
						if($row_submenu['REDIRECT_STATUS'] == "YES")
						{
						$sub_href = $row_submenu['WEB_REDIRECT'];	
						}
						else if($row_submenu['REDIRECT_STATUS'] == "NO")
						{
						$sub_href = "pages.php?pages_id=".$row_submenu['pages_id']."";	
						} 
							 
							 
						 ?>
                            <li><a href="<?php echo $sub_href;?>">
							<?php echo ucwords($row_submenu['SUB_MENU_NAME'])?></a></li>
						<?php } ?>	
                        </ul>
                        
                     <?php } ?>   
                    </li>                   
                 <?php } ?>    
				</ul>
			</div>  
	</div>
    <!--End Main Nav--> 
</div>
<!--End Main Bar-->
</div>
<!--End Box-->

<!--Start Box-->
<div class="box"><div class="clearsmall"></div>
    
<div class="headertext">MEMBERSHIPS</div>
<?php do { ?>
  <p>
  <div class="MEMBERSHIP_PLANS_DETAIL" id="MEMBERSHIP_PLANS_DETAIL">
    <table width="100%" border="0" cellspacing="3" cellpadding="3">
      <tr>
        <td height="100%"><div>
          <div class="PLAN_HEADER_DETAIL" id="PLAN_HEADER_DETAIL"><?php echo $row_MEMBERSHIP_PACKAGES['title_name']; ?></div><br />

            <table width="100%" border="0" align="left" cellpadding="1" cellspacing="1">
  <tr>
    <td align="left" valign="top" class=""><div class="leftfix1">
      <div class="leftboxlight"> Please enter your settings below to create an account to allow you to access your ELEVATE954 account.
          <div><br />

        
        <form action="register.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
          <input type="hidden" name="signup" value="1" />
          <input type="hidden" name="pack_id" value="<?php echo $pack_id ?>" />
          <input type="hidden" name="membership" value="<?php echo $membership ?>" />
          <input type="hidden" name="total_amount" value="<?php echo $totalamount ?>" />
          <input type="hidden" name="validity" value="<?php echo $validity ?>" />
          <input type="hidden" name="url" value="<?= $url; ?>" />
          
          <h1 class="PLAN_HEADER_DETAIL">PERSONAL INFORMATION</h1>
          
          <div class="regleft">First Name: *</div>
          <div class="regright" style="width: 300px;">
            <input type="text" name="first" class="loginbox" style="width:150px;" value="<?= htmlentities(stripslashes($first),ENT_QUOTES); ?>" />
            </div>
          <div class="regleft">Last Name: *</div>
          <div class="regright" style="width:300px;">
            <input type="text" name="last" class="loginbox"  value="<?= htmlentities(stripslashes($last),ENT_QUOTES); ?>" />
            </div>
          
          <div class="clear" ></div>
          <div class="regleft">Address: *</div>
          <div class="regright" style="width:300px;">
            <input name="address" type="text" class="loginbox" value="<?php echo $address;?>" style="width:150px;" />
            </div>

          <div class="regleft">City: *</div>
          <div class="regright" style="width:300px;">
            <input name="city" type="text" class="loginbox" value="<?php echo $city;?>" size="45" />
            </div>
          
          <div class="clear" style="height:5px;"></div>
          <div class="regleft">Country: *</div>
          <div class="regright" style="width:300px;">
            <select name="country" id="country" class="loginbox">
              <option selected value="">--- Please Select ---</option>
              
              <optgroup label="USA">
                <?php	
						while($row_count_usa = mysql_fetch_array($res_count_usa))	{	
						$sel = $row_count_usa['country_code'] == $country ? "selected" : '';
				?>
                <option value="<?php echo $row_count_usa['country_code'] ?>" <?php echo $sel; ?> ><?php echo $row_count_usa['country'] ?></option>	
                <?php }	?>
                </optgroup>
              <optgroup label="OTHER">
                <?php	
						while($row_count = mysql_fetch_array($res_count))	{	
						$sel = $row_count['country_code'] == $country ? "selected" : '';
				?>
                <option value="<?php echo $row_count['country_code'] ?>" <?php echo $sel; ?> ><?php echo $row_count['country'] ?></option>	
                <?php }	?>
                </optgroup>
              
              </select>
            </div>
          
          <div class="regleft">State/Province: *</div>
          <div class="regright" style="width:300px;">
            <select name="state" id="state" class="loginbox">
              <option selected value="">--- Please Select ---</option>
              <?php foreach($state_list as $key => $value)		{  
					$sel = $key == $state ? "selected" : '';
				?>	
              <option value="<?php echo $key ?>" <?php echo $sel; ?> ><?php echo $value ?></option>	
              <?php }	?>
              </select>
            </div>
          
          <div class="clear" style="height:5px;"></div>
          <div class="regleft">Zip/Postal Code: *</div>
          <div class="regright" style="width:300px;">
            <input name="zip" type="text" class="loginbox" value="<?php echo $zip;?>" size="45" />
            </div>
          
          <div class="regleft">Username (for display): *</div>
          <div class="regright" style="width:300px;">
            <input type="text" name="username" class="loginbox" style="width:150px;" value="<?= htmlentities(stripslashes($username),ENT_QUOTES); ?>" />
            </div>
          
          <div class="clear" style="height:5px;"></div>
          <div class="regleft">Email (for login): *</div>
          <div class="regright" style="width:300px;">
            <input type="text" id="email" name="email" class="loginbox" style="width:200px;" value="<?= htmlentities(stripslashes($email),ENT_QUOTES); ?>" />
            </div>
          
          <div class="regleft">Desired Password: *</div>
          <div class="regright" style="width:300px;">
            <input type="password" name="password1" class="loginbox" style="width:150px;" />
            </div>
          
          <div class="clear" style="height:5px;"></div>
          <div class="regleft">Confirm Password: *</div>
          <div class="regright" style="width:300px;">
            <input type="password" name="password2" class="loginbox" style="width:150px;" />
            </div>
          <br />
          
          <div class="clear" style="height:5px;"></div>	
          <h1 class="PLAN_HEADER_DETAIL">CREDIT CARD INFORMATION</h1>
          
          <div class="clear" style="height:5px;"></div>
          <div class="regleft">Select One: *</div>
          <div class="regright" style="width:500px;">
            <input name="cctype" type="radio" checked="checked" value="VISA" class="lft-field" />
            <img src="visa_card.png" width="79" height="49" class="lft-field" />
            <input name="cctype" type="radio" value="MASTERCARD" class="lft-field" />
            <img src="master_card.png" width="79" height="49" class="lft-field" />
            <input name="cctype" type="radio" value="AMEX" class="lft-field" />
            <img src="american_express_card.png" width="79" height="49" class="lft-field" />
            <input name="cctype" type="radio" value="DISCOVER" class="lft-field" />
            <img src="discover_card.png" width="80" class="lft-field" />
            </div>
          <div class="clear" style="height:5px;"></div>
          <div class="regleft">Card Number: *</div>
          <div class="regright" style="width:300px;">
            <input name="ccn" type="text" class="loginbox" size="45"  maxlength="16" value="<?php echo $ccn;?>" />
            </div>
          <div class="clear" style="height:5px;"></div>
          <div class="clear" style="height:5px;"></div>
          <div class="regleft">Name On Card: *</div>
          <div class="regright" style="width:300px;">
            <input name="ccname" type="text" class="loginbox" size="45" value="<?php echo $ccname;?>"/>
            </div>
          <div class="clear" style="height:5px;"></div>
          <div class="regleft">Expiration Date: *</div>
          <div class="regright" style="width:300px;">
            <select name="month" style="width:120px" class="loginbox">
              <?php foreach ($months as $month): 
					$sel = $month == $mon ? "selected" : '';
				?>
              <option value="<?php echo $month['value']; ?>" selected="selected" <?php echo $sel ?>><?php echo $month['text']; ?></option>
              <?php endforeach;?>
              </select>
            <select name="year" style="width:100px" class="loginbox">
              <?php foreach ($year_expire as $year):
					$sel = $year == $yr ? "selected" : '';
				?>
              <option value="<?php echo $year['value']; ?>" <?php echo $sel ?>><?php echo $year['text']; ?></option>
              <?php endforeach;?>
              </select>
            </div>
          
          <div class="clear" style="height:5px;"></div>
          <div class="regleft">CVV: *</div>
          <div class="regright" style="width:300px;">
            <input name="cvv" type="text" class="loginbox" size="5" maxlength="4" value="<?php echo $cvv;?>" />
            </div>
          
          <div class="clear" style="height:5px;"></div>
          <div class="regleft">Paying Now:</div>
          <div class="regright" style="width:300px;">
            &#36;<span id="tot_amt"><?php echo number_format($totalamount,2);?></span>
            </div>
          
          <div class="clear" style="height:5px;"></div><br />
<input name="Submit" type="submit" class="button highlight action" "  value="Register" />
          
          <br />
          
          <?php /*?><div class="regleft">Spam Blocker: *</div>
                    <div class="regright" style="width:350px;">
                    	<?php
					
							require_once('recaptchalib.php');
							$publickey = "6LdsRgsAAAAAAMrOxW0NUN1qwKO9yzku2kEqwa4j";
							echo recaptcha_get_html($publickey);
						
						?>
                    </div>
                    <div class="clear" style="height:5px;"></div><?php */?>
        </form>
        
      </div>
    </div></td>
  </tr>
</table>
          
          
          
          </td>
        </tr>
      </table>
    
  </div><br />
  <?php } while ($row_MEMBERSHIP_PACKAGES = mysql_fetch_assoc($MEMBERSHIP_PACKAGES)); ?>
</p>
<div class="divider">
</div>

</div>
<!--End Box-->

<!--Featured Projects-->
<div class="centerbar">
  <div class="clearnospacing"></div>
</div>
<!--End Featured Projects-->

<!--Page Callout Section--><!--End Page Callout Section--> 

<!--Footer-->
<div class="footer">
    <div class="footer_container">       
        
     			<div class="footer1">
        			<h4>COMPANY</h4>
       				<div class="clear"></div>           
					<p>Our mission at Elevate is to improve the quality of life for our clients. We provide professional athletic training to world class athletes and take that same approach and apply it to all of our clients at Elevate. Whether it is thru Weight-Loss, Performance Training, or just trying to maintain a healthy  lifestyle, our staff at Elevate is here to assist you achieve your goals. </p>                          
        		</div>      
     			<div class="footer2">
        			<h4>RECENT NEWS</h4>
       			  <div class="clear"></div>
            		<!--Flickr-->
					<ul>
                      <?php do { ?>
                        <div class="NEWS_BOTTOM_LINKS" id="NEWS_BOTTOM_LINKS"><li><a href="elevate_news.php"><?php echo $row_NEWS['ARTICLE_NAME']; ?></a></li></div><br />
                        <?php } while ($row_NEWS = mysql_fetch_assoc($NEWS)); ?>
                      <br />

            		<a href="elevate_news.php" target="_self" class="button highlight action" id="WERWERW">READ MORE</a>
   			      </ul>
                  
	  </div>                
     			<div class="footer3">
        			<h4>Elevate Training & Fitness INFO</h4>
       				<div class="clear"></div>            
        			<p class="highlight"><span class="phone"> 954.530.2328</span></p>
           	 		<p class="highlight"><span class="email bold"> <a href="mailto:info@elevate954.com">info@elevate954.com</a></span></p>
            		<p class="highlight"><span class="mail">3400 SW 26 Terrace
Bay a2<br />
Fort Lauderdale Florida 33312</span></p> 
         		</div>        
     			<div class="footer4">                
    				<h4>CONTACT US</h4>
        			<div class="clear"></div>           
					<!--Form--> 
        			<iframe src='contactfooter/contactform.php' frameborder='0'
					width='222' height='200' marginwidth="0" scrolling="no"></iframe>
       				<!--End Form-->
        		</div>
        
    <div class="clearnospacing"></div>
    </div>
</div>

<!--Copyright Section-->
<div class="bottombar">
    <div class="bottombar_container">
    
        <div class="copyright">&copy; ELEVATE954. All Rights Reserved. Design by <a href="#" class="bold">SOLIS COMPUTER CONSULTANTS</a></div>
        
        <div class="bottom_nav">
            <!--<div class="crumb_navigation">
            	<ul>
		    		<li><a href="index.html" class="fade">HOME</a></li>
		    		<li><a href="about.html" class="fade">ABOUT US</a></li>
		   			<li><a href="services.html" class="fade">GALLERIES</a></li>
                 	<li><a href="gallery1.html" class="fade">TRAINING</a></li>
                    <li><a href="blog.html" class="fade">MEMBERSHIP</a></li>
                    <li><a href="contact.html" class="fade">SCHEDULE</a></li>
                    <li><a href="contact.html" class="fade">ONLINE STORE</a></li>
                </ul>
			</div>
        </div>-->
        
        <p><a href="#top" id="top-link"></a></p> 
        
    </div>   
</div>
<!--END Copyright Section-->
<!--End Footer-->
</div>
<!--End Content-->

<script type="text/javascript" src="js/custom_filter.js"></script>

<!--Tool Tip-->
<script type="text/javascript">
var tip = $();
$(document).ready(function() {
    //Tooltips
    $(".tip_trigger").hover(function(){
        tip = $(this).find('.tip');
        tip.show(); //Show tooltip
    }, function() {
        tip.hide(); //Hide tooltip
    }).mousemove(function(e) {
        var mousex = e.pageX + 20; //Get X coodrinates
        var mousey = e.pageY + 20; //Get Y coordinates
        var tipWidth = tip.width(); //Find width of tooltip
        var tipHeight = tip.height(); //Find height of tooltip

        //Distance of element from the right edge of viewport
        var tipVisX = $(window).width() - (mousex + tipWidth);
        //Distance of element from the bottom of viewport
        var tipVisY = $(window).height() - (mousey + tipHeight);

        //Absolute position the tooltip according to mouse position
        tip.css({  top: mousey, left: mousex });
    });
});
</script>

<!--Tabs-->
<script type="text/javascript" src="js/tabs.js"></script>

<!--Toggle-->
<script type="text/javascript">
$(function() {
    $(".expand").toggler({initShow: "div.collapse:first", method: "slideFadeToggle"});
    // --- Other options:
    //$(".expand").toggler({method: "toggle", speed: 0});
    //$(".expand").toggler({method: "toggle"});
    //$(".expand").toggler({speed: "fast"});
    //$(".expand").toggler({method: "fadeToggle"});
    //$(".expand").toggler({method: "slideFadeToggle"});    
    $("#content").expandAll({trigger: ".expand", ref: "div.demo",  speed: 600, oneSwitch: false});
});
</script>

<!--Coda Slider-->
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="js/jquery.coda-slider-2.0.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$('#coda-slider-1').codaSlider();
	});
</script>

<!--Background-->
<script type="text/javascript">
$(window).load(function() {
	$("#background").fullBg();
});
</script>

</body></html>
<?php
mysql_free_result($MEMBERSHIP_PACKAGES);

mysql_free_result($PAGES);

mysql_free_result($featured_pages);

mysql_free_result($NEWS);
?>
